package cn.lb.framework.poi.pdf.entity;

import com.itextpdf.text.Font;

/**
 * Created by Administrator on 2016/5/24.
 */
public class PdfCellParams {

    private String value;//单元格的值
    private Integer colAlign;//对齐格式 Element.ALIGN_CENTER
    private Boolean boderFlag;//是否需要边框
    private Integer colSpan;//列数
    private Font font;//字体
    private Float paddingRight;
    private Float paddingLeft;

    public PdfCellParams(String value, Integer colAlign, Integer colSpan, Boolean boderFlag, Font font) {
        this.value = value;
        this.colAlign = colAlign;
        this.boderFlag = boderFlag;
        this.colSpan = colSpan;
        this.font = font;
    }

    public PdfCellParams(String value, Integer colAlign, Integer colSpan, Boolean boderFlag) {
        this.value = value;
        this.colAlign = colAlign;
        this.boderFlag = boderFlag;
        this.colSpan = colSpan;
    }

    public PdfCellParams(String value,Font font) {
        this.font = font;
        this.value = value;
    }

    public PdfCellParams(String value, Integer colAlign) {
        this.value = value;
        this.colAlign = colAlign;
    }

    public PdfCellParams(String value, Integer colAlign, Font font) {
        this.value = value;
        this.font = font;
        this.colAlign = colAlign;
    }

    public PdfCellParams(String value, Integer colAlign, Integer colSpan) {
        this.value = value;
        this.colAlign = colAlign;
        this.colSpan=colSpan;
    }

    public PdfCellParams(String value, Integer colAlign, Integer colSpan, Font font) {
        this.value = value;
        this.font = font;
        this.colSpan = colSpan;
        this.colAlign = colAlign;
    }

    public PdfCellParams(String value) {
        this.value = value;
    }

    public PdfCellParams() {
    }

    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }

    public Integer getColAlign() {
        return colAlign;
    }

    public void setColAlign(Integer colAlign) {
        this.colAlign = colAlign;
    }

    public Boolean isBoderFlag() {
        return boderFlag;
    }

    public void setBoderFlag(Boolean boderFlag) {
        this.boderFlag = boderFlag;
    }

    public Integer getColSpan() {
        return colSpan;
    }

    public void setColSpan(Integer colSpan) {
        this.colSpan = colSpan;
    }

    public Font getFont() {
        return font;
    }

    public void setFont(Font font) {
        this.font = font;
    }

    public Float getPaddingRight() {
        return paddingRight;
    }

    public void setPaddingRight(Float paddingRight) {
        this.paddingRight = paddingRight;
    }

    public Float getPaddingLeft() {
        return paddingLeft;
    }

    public void setPaddingLeft(Float paddingLeft) {
        this.paddingLeft = paddingLeft;
    }
}
